package com.study.java.junit;

import java.util.Date;

import org.junit.Test;

import com.study.java.domain.User;
import com.study.java.service.UserService;
import com.study.java.service.impl.UserServiceImpl;

/**
* @Name: UserServiceTest
* @Description: UserService层测试类
* @Author: XXX
* @CreateDate: XXX
* @Version: V1.0
 */
public class UserServiceTest {
	
	private UserService userService = new UserServiceImpl() ;
	
	@Test
	public void testRegister() {
		User user = new User() ;
		user.setUsername("zhangsan") ;
		user.setPassword("zhangsan") ;
		user.setBirthday(new Date()) ;
		user.setEmail("123@123.com") ;
		userService.register(user) ;
	}

}
